with

fun with(user: User, partitionValue: String?, schema: Set<KClass<out RealmObject>>): SyncConfiguration
fun with(user: User, partitionValue: Int?, schema: Set<KClass<out RealmObject>>): SyncConfiguration
fun with(user: User, partitionValue: Long?, schema: Set<KClass<out RealmObject>>): SyncConfiguration

Creates a sync configuration for Partition-based Sync with default values for all optional configuration parameters.

See also

https

://www.mongodb.com/docs/realm/sync/data-access-patterns/partitions

Parameters

user

the User who controls the realm.

partitionValue

the partition value that defines which data to sync to the realm.

schema

the classes of the schema. The elements of the set must be direct class literals.

Throws

if the user is not valid and logged in.